package org.springblade.modules.platform.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
public class GetEquiomentByDetailVO {

	@ApiModelProperty(value = "设备编号")
	private String equiomentId;
	/**
	 * 设备状态：1:打开 0关闭
	 */
	@ApiModelProperty(value = "0:未激活，1：在线；2离线;")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Integer offLineStatus;

	@ApiModelProperty(value = "注册时间")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Long registrationTime;

	@ApiModelProperty(value = "设备类型(1:直连设备;2:网关子设备;3:网关设备)")
	private Integer equiomentType;


	private List<AttributeFieldVO> attributeFieldVOListVO;
	@NoArgsConstructor
	@Data
	public static class AttributeFieldVO {
		@ApiModelProperty(value = "属性物模型ID")
		private String key;
		@ApiModelProperty(value = "属性物模型Name")
		private String name;
		@ApiModelProperty(value = "属性值")
		private String value;

	}

	@ApiModelProperty(value = "功能物模型字段值")
	private List<FunctionsVO> functionsVOList;


}
